package binary;

public class HexDemo {
    public static void main(String[] args) {
        int a =0x2fd47b;
        int b =0b10_1101_1101_0011_1100_1010;
        System.out.println(Integer.toBinaryString(a));
        System.out.println(Integer.toBinaryString(b));
        System.out.println(Integer.toHexString(a));
        System.out.println(Integer.toHexString(b));
        System.out.println(a);
        System.out.println(b);

    }
}
